/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine SDK - core/system/platform
// Copyright (c) 2014.  All Rights Reserved
//
// File:		AEAndroidProcessor.cpp
// Author:		Gianluca Belardelli
// Date:		01/06/2014
//
/////////////////////////////////////////////////////////////////////////
#include <AECore.h>
#include <machine/cpu-features.h>

AEUINT32	AEProcessor::m_uiNumCPU = 0;
AECHAR		AEProcessor::m_cAffinityMask[MAX_PROCESSOR_SUPPORTED];

AEProcessor &AEProcessor::GetInstance( void )
{
	static AEProcessor sInstance;
	return sInstance;
}

AEProcessor::AEProcessor( void )
{
	//android_getCpuFamily();
	//m_uiNumCPU = android_getCpuCount();
}

AEUINT32 AEProcessor::GetNumCPUAvailableForProcess( void )
{
	//TODO
	return m_uiNumCPU;
}

AEUINT32 AEProcessor::AffinitizeThreadToProcessor( AEUINT32 uiProcessorNumber )
{
	AEASSERT( uiProcessorNumber <= m_uiNumCPU );

	//TODO
	return 2;
}

AEUINT32 AEProcessor::GetNumCPU( void )
{
	return m_uiNumCPU;
}
